package com.hsmpay.mobile.pojo.user;

import com.hsmpay.common.pojo.BasePojo;

import java.util.Date;

/**
 * 用户激活码
 * 对应的表： info_activation_code
 * 建立时间：2012-12-17
 *
 * @author 颜铃璋
 */
public class ActivationCode extends BasePojo {
    private static final long serialVersionUID = -3438382730850468767L;

    private Long id;//ID
    private Long roleId;//终端类型ID
    private String code;//终端激活码
    private Integer effective;//有效 1 为有效  0 为无效 默认1
    private Date createDate;//创建时间
    private Integer IsActivation;//是否被激活
    private Long batchId;//批次Id
    private Long organizationId;//机构Id
    private Double feeRate;//手续费费率
    private Double clearRate;//佣金费费率
    private Double ownBrokerageRate;//佣金比例
    private Double clearFee;//结算手续费
    private Double fdMaxFee;//封顶最大手续费
    private Double fdMinFee;//封顶最小手续费

    //	private Date updateTime;
//	private Long updateOUId;
//	private Date assignTime;
//	private Long assignOUId;
    private Double cashRate;//提现费率
    private Double fdFeeRate;//封顶费率
    //
    private Long batchOrganizationId;//高级指派
    private Long terminalTypeId;//终端ID  区别终端

    public Long getBatchId() {
        return batchId;
    }

    public void setBatchId(Long batchId) {
        this.batchId = batchId;
    }

    public Long getOrganizationId() {
        if (null == organizationId) {
            return batchOrganizationId;
        }
        return organizationId;
    }

    public void setOrganizationId(Long organizationId) {
        this.organizationId = organizationId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getEffective() {
        return effective;
    }

    public void setEffective(Integer effective) {
        this.effective = effective;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Integer getIsActivation() {
        return IsActivation;
    }

    public void setIsActivation(Integer isActivation) {
        IsActivation = isActivation;
    }

    public Long getBatchOrganizationId() {
        return batchOrganizationId;
    }

    public void setBatchOrganizationId(Long batchOrganizationId) {
        this.batchOrganizationId = batchOrganizationId;
    }

    public Long getTerminalTypeId() {
        return terminalTypeId;
    }

    public void setTerminalTypeId(Long terminalTypeId) {
        this.terminalTypeId = terminalTypeId;
    }

    public Double getFeeRate() {
        return feeRate;
    }

    public void setFeeRate(Double feeRate) {
        this.feeRate = feeRate;
    }

    public Double getClearRate() {
        return clearRate;
    }

    public void setClearRate(Double clearRate) {
        this.clearRate = clearRate;
    }

    public Double getOwnBrokerageRate() {
        return ownBrokerageRate;
    }

    public void setOwnBrokerageRate(Double ownBrokerageRate) {
        this.ownBrokerageRate = ownBrokerageRate;
    }

    public Double getClearFee() {
        return clearFee;
    }

    public void setClearFee(Double clearFee) {
        this.clearFee = clearFee;
    }

    public Double getFdMaxFee() {
        return fdMaxFee;
    }

    public void setFdMaxFee(Double fdMaxFee) {
        this.fdMaxFee = fdMaxFee;
    }

    public Double getFdMinFee() {
        return fdMinFee;
    }

    public void setFdMinFee(Double fdMinFee) {
        this.fdMinFee = fdMinFee;
    }

    public Double getCashRate() {
        return cashRate;
    }

    public void setCashRate(Double cashRate) {
        this.cashRate = cashRate;
    }

    public Double getFdFeeRate() {
        return fdFeeRate;
    }

    public void setFdFeeRate(Double fdFeeRate) {
        this.fdFeeRate = fdFeeRate;
    }
}
